/*    */ package com.service.impl;
/*    */ 
/*    */

import com.dao.IAdminDao;
import com.domain.Admin;
import com.service.IManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/*    */
/*    */ @Service
/*    */ public class ManagerService
/*    */   implements IManagerService
/*    */ {
/*    */   @Autowired
/*    */   private IAdminDao managerDao;
/*    */   
/*    */   public Admin login(Integer account, String password) throws Exception {
/* 18 */     return this.managerDao.login(account, password);
/*    */   }
/*    */ 
/*    */   
/*    */   public List<Admin> getAllAdmin() {
/* 23 */     return this.managerDao.getAllAdmin();
/*    */   }
/*    */ 
/*    */   
/*    */   public int addAdmin(Admin admin) {
/* 28 */     return this.managerDao.addAdmin(admin);
/*    */   }
/*    */ 
/*    */   
/*    */   public int updateAdmin(Admin admin) {
/* 33 */     return this.managerDao.updateAdmin(admin);
/*    */   }
/*    */ 
/*    */   
/*    */   public Admin getAdminById(Integer integer) {
/* 38 */     return this.managerDao.getAdminById(integer);
/*    */   }
/*    */ 
/*    */   
/*    */   public int deleteAdmin(Integer integer) {
/* 43 */     return this.managerDao.deleteAdmin(integer);
/*    */   }
/*    */ 
/*    */   
/*    */   public List<Admin> getByName(Integer id) {
/* 48 */     return this.managerDao.getByName(id);
/*    */   }
/*    */ }


/* Location:              G:\项目\图书管理系统\library_system-1.0-SNAPSHOT.war!\WEB-INF\classes\com\service\impl\ManagerService.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */